package com.powernode.business.mapper;

import com.powernode.business.domain.Check;
import com.powernode.common.core.domain.model.LoginUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CheckMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Check record);

    int insertSelective(Check record);

    Check selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Check record);

    int updateByPrimaryKey(Check record);

    List<Check> selectCheck(@Param("check") Check check, @Param("loginUser") LoginUser loginUser);

    /**
     * 注解代表后面数据的引用,  新增不要加注解,因为主键自增不能封装上
     * @param id
     * @param username
     * @return
     */
    int deleteCheck(@Param("id") List<Integer> id, @Param("username") String username);
}